#include<bits/stdc++.h>

using namespace std;
int a[100], n;

int main() {
    n = 4;
    for (int i = 0; i <= n - 1; i++)cin >> a[i];
    for (int j = 0; j <= (n - 1) / 2; j++) {
        swap(a[j], a[n - j - 1]);
    }
    for (int x = 0; x <= n - 1; x++) {

        if (x == 0)cout << a[x];
        else cout << " " << a[x];
    }

    return 0;
}
